package com.alibaba.otter.node.etl.load.loader.mq.rabbit.strategy;


import java.util.Date;

public class DefaultRetryStrategy implements RetryStrategy {

    public DefaultRetryStrategy(int maxRetry) {
        this.maxRetry = maxRetry;
    }

    private int maxRetry;

    private int retied;

    @Override
    public int maxRetry() {
        return maxRetry;
    }

    @Override
    public void setRetried(int retried) {
        this.retied = retried;
    }

    @Override
    public Date nextRetryTime() {

        return new Date();
        //return DateTime.now().plusSeconds(1).toDate();
    }
}
